package com.wanchuang.shengfubao.adapter;

import android.content.Context;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.module.LoadMoreModule;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.wanchuang.shengfubao.R;
import com.wanchuang.shengfubao.proto.MemberOuterClass;


import java.util.List;

public class MessageAdapter extends BaseQuickAdapter<MemberOuterClass.System_log.System_log_list, BaseViewHolder> implements LoadMoreModule {
    public MessageAdapter(Context context, List<MemberOuterClass.System_log.System_log_list> dataList) {
        super(R.layout.item_message, dataList);
    }

    @Override
    protected void convert(BaseViewHolder helper, MemberOuterClass.System_log.System_log_list item) {
        helper.setText(R.id.tv_time, item.getPushTime())
                .setText(R.id.tv_title, item.getPushTitle())
                .setText(R.id.tv_message, item.getPushMessage());
    }

}
